package com.test.smartcampusapi.mapper;


import com.test.smartcampusapi.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {
    List<User> getAllUsers();

    int addUser(String account, String password);

    int login(String account, String password);

    int updateInformation(String userAccount,
                          String userGender,
                          String userDescription,
                          String userPhone
                         );

    int bindCard(String userAccount,String cardNumber);
    int unBindCard(String userAccount);

    User getUserInfo(String userAccount);

}
